const initRoutes = [
  {
    path: "/",
    name: "layout",
    redirect: "/home",
    component: () => import("@/components/layout/layout.vue"),
    meta: {
      required: true,
    },
    children: [
      {
        path: "home",
        name: "home",
        component: () => import("@/views/Home.vue"),
        meta: {
          title: "首页",
        },
      },
    ],
  },
  {
    path: "/hospital",
    component: () => import("@/views/screenPage/hospital.vue"),
  },
  {
    path: "/product",
    component: () => import("@/views/screenPage/product.vue"),
  },
  {
    path: "/login",
    component: () => import("@/views/Login.vue"),
  },
  {
    path: '/notFound', component: () => import("@/views/NotFound.vue")
  },
  { path: "/:pathMatch(.*)*", redirect: '/notFound' },
];

export default initRoutes;
